package com.jdeng.service;

import com.jdeng.api.User;
import com.jdeng.api.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

@DubboService(filter = {"timeout"}, timeout = 3000)
public class UserServiceImpl implements UserService {

    @Value("${server.name}")
    String sererName;

    @Override
    public User getUser(Integer id) {
        System.out.println("server.name is " + sererName);
        return new User(id, id + " " + "xxx");
    }
}
